package com.shawn.spring.boot.mybatisplus.service.impl;

import com.shawn.spring.boot.mybatisplus.entity.Role;
import com.shawn.spring.boot.mybatisplus.mapper.RoleMapper;
import com.shawn.spring.boot.mybatisplus.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 角色 服务实现类
 *
 * @author shawn
 * @since 2020-08-30
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

  @Override
  public int saveReturnKey(Role role) {
    return getBaseMapper().insertReturnKey(role);
  }
}
